﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace EffectiveToDo
{
    public partial class Form2 : Form
    {
        string task;
        int time;
        string date;
        string category;
        
        public Form2()
        {
            InitializeComponent();
        }

        public void EnterTask_Click(object sender, EventArgs e)
        {
            task = Task.Text;
            time = Convert.ToInt32(Time.Text);
            date = DueDate_input.Value.ToString("MM/dd/yyyy");
            category = Category_input.Text;
            MessageBox.Show(category);
         }

        private void Clear_Click(object sender, EventArgs e)
        {
            Task.Text = "";
            Time.Text = "";
            DueDate_input.Value = DateTime.Now;
        }
    }
}
